package com.ecloud.aiassistantbackground.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户优惠券日志表
 * </p>
 *
 * @author Squbirreland
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("assistant_user_coupon_log")
@ApiModel(value = "UserCouponLog对象", description = "用户优惠券日志表")
public class UserCouponLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户优惠券日志id")
    @TableId(value = "user_coupon_log_id", type = IdType.AUTO)
    private Integer userCouponLogId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "优惠券id")
    private Integer couponId;

    @ApiModelProperty(value = "变更时间")
    private LocalDateTime userCouponLogTime;

    @ApiModelProperty(value = "变更类型 0减少 1增加")
    private String userCouponLogType;

    @ApiModelProperty(value = "变更原因 -1过期 0消耗 1活动/推广获得 2购买获得")
    private String userCouponLogReason;

    @ApiModelProperty(value = "备用字段1")
    private String userCouponLogReserve1;

    @ApiModelProperty(value = "备用字段2")
    private String userCouponLogReserve2;

}
